<?xml version="1.0" encoding="UTF-8"?>

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui"
     xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
     template="TemplateFrontEnd.xhtml">
<ui:define name="title">Test bid</ui:define>
<ui:define name="body" >

<h:form>
<p:panelGrid columns="3" >
<p:commandButton value="archiver" action="#{bidMB.archive()}" ajax="false" />
<p:selectOneMenu value="#{bidMB.idOffre}">
<f:selectItems  value="#{bidMB.listeOffre()}" var="a" itemLabel="#{a.titre}"  itemValue="#{a.idOffre}"/>

</p:selectOneMenu>
<p:commandButton value="Test" action="#{bidMB.TestBid()}" ajax="false" />
<p:outputLabel  value="#{bidMB.testbid}" />
</p:panelGrid>
<p:selectOneMenu value="#{bidMB.idCarrier}">
<f:selectItems value="#{bidMB.listeTransporteur()}" var="a" itemLabel="#{a.nom}"  itemValue="#{a.idUtilisateur}" />
</p:selectOneMenu>
<p:panelGrid columns="2" >

<p:outputLabel value="prix offre"/>
<p:outputLabel value="#{bidMB.offre.prix_desire}" />

<p:outputLabel value="minimum bid reduction"/>
<p:outputLabel value="#{bidMB.minbid}"/>

<p:outputLabel value="TVA"/>
<p:outputLabel value="#{bidMB.TVA}"/>

<p:outputLabel value="prix"/>
<p:inputText value="#{bidMB.price}"/>

<p:commandButton value="bider" action="#{bidMB.bider()}" ajax="false" />

</p:panelGrid>
<p:panelGrid columns="2"  style="width: 100%;">


<p:commandButton ajax="false"  value="rafraichirTra" action="#{bidMB.espaceExpediteurs()}" />

<p:commandButton ajax="false"  value="rafraichirExp" action="#{bidMB.espaceTransporteurs()}" />

</p:panelGrid>
</h:form>
</ui:define>





</ui:composition>